package com.zhk.entry.util;

import java.sql.Connection;
import java.sql.SQLException;

public interface IThreadConn {

    //设置数据源名称
    void setDataName(String dataName);

    //获取连接
    Connection getConnection();

    //关闭自动事物
    void startTransaction() throws SQLException;

    //提交事物
    void commitTransaction() throws SQLException;

    //回滚事物
    void rollbackTransaction() throws SQLException;
}
